package com.bigshen.demo.project.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class MyService {

    @Autowired
    @Qualifier("childService")
    public HumanService humanService;

    @Resource(name = "personService")
    public HumanService personService;

    @Autowired
    public HumanService primaryService;

}
